//
//  appraiseTabelViewCell.m
//  one_mile_01
//
//  Created by 王进帅 on 15/8/25.
//  Copyright (c) 2015年 王雅蓉. All rights reserved.
//

#import "appraiseTabelViewCell.h"

@implementation appraiseTabelViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCellView];
    }
    return  self;
}
-(void)creatCellView{
    
    self.bgImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0,WIDTH - 20, 150)];
    self.bgImageView.backgroundColor = [UIColor colorWithRed:232/255.0 green:234/255.0 blue:235/255.0 alpha:1.0];
    self.bgImageView.image = [UIImage imageNamed:@"kuangjia.png"];
    self.bgImageView.layer.cornerRadius = 5;
    [self.contentView addSubview:self.bgImageView];
    
    self.imageView1 = [[UIImageView alloc]initWithFrame:CGRectMake(self.bgImageView.frame.origin.x + 15 , self.bgImageView.frame.origin.y + 10,30 , 30)];
    self.imageView1.layer.masksToBounds = YES;
    //    self.imageView1.backgroundColor = [UIColor redColor];
    self.imageView1.layer.cornerRadius = 15;
    [self addSubview:self.imageView1];
    
    
    self.label3 = [[UILabel alloc]init];
    //    self.label3.backgroundColor = [UIColor blackColor];
    self.label3.font = [UIFont systemFontOfSize:16];
    self.label3.frame  = CGRectMake(self.imageView1.frame.origin.x + self.imageView1.frame.size.width + 20 , self.bgImageView.frame.origin.y + 10,100,25);
    [self.contentView addSubview:self.label3];
    
    self.linelebel = [[UILabel alloc]init];
    self.linelebel.frame = CGRectMake(self.imageView1.frame.origin.x , self.imageView1.frame.origin.y + self.imageView1.frame.size.height + 3, self.bgImageView.frame.size.width - 30, 0.5);
    self.linelebel.backgroundColor = [UIColor blackColor];
    [self.contentView addSubview:self.linelebel];
    
    self.label1 = [[UILabel alloc]init];
    self.label1.frame = CGRectMake(self.bgImageView.frame.origin.x + 15 , self.linelebel.frame.origin.y + 10, self.bgImageView.frame.size.width - 25, 40);
    self.label1.font = [UIFont systemFontOfSize:15];
    self.label1.numberOfLines = 2;
    //        self.label1.backgroundColor = [UIColor redColor];
    [self.contentView addSubview:self.label1];
    
    self.label2 = [[UILabel alloc]init];
    self.label2.frame = CGRectMake(self.label1.frame.origin.x , self.label1.frame.origin.y + self.label1.frame.size.height + 5, self.label1.frame.size.width, 30);
    self.label2.font = [UIFont systemFontOfSize:13];
    //    self.label2.backgroundColor = [UIColor redColor];
    self.label2.textColor = [UIColor colorWithRed:204/255.0 green:204/255.0 blue:204/255.0 alpha:1.0];
    [self.contentView addSubview:self.label2];
    
    self.label4 = [[UILabel alloc]initWithFrame:CGRectMake(self.label3.frame.origin.x + self.label3.frame.size.width + 10 , self.label3.frame.origin.y + 5 ,120,20)];
    self.label4.textColor = [UIColor colorWithRed:204/255.0 green:204/255.0 blue:204/255.0 alpha:1.0];
    self.label4.font = [UIFont systemFontOfSize:12];
//    self.label4.backgroundColor = [UIColor purpleColor];
    [self.contentView addSubview:self.label4];

}



@end
